﻿using System.Collections.Generic;

namespace CQRSFramework.Events
{
    public interface IEventJsonSerializer
    {
        IDictionary<string, string> Serialize(IEnumerable<IDomainEvent> domainEvents);
        IEnumerable<IDomainEvent> Deserialize(IDictionary<string, string> events);
    }
}
